include(win_sdk_env.cmake)

set(ENV{PATH} "${WIN_SDK_PATH};$ENV{PATH}")
set(ENV{LIB} "${WIN_SDK_LIB}")
set(ENV{INCLUDE} "${WIN_SDK_INCLUDE}")

# gnu make automatically sets MAKEFLAGS to some value that confuses nmake,
# so unset it here
unset(ENV{MAKEFLAGS})

execute_process(COMMAND nmake nodebug=1)